<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/components/util">

<f:view contentType="text/html">
	<h:head>
		<f:facet name="first">
			<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
			<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
			<title>欢迎使用Easy ERP系统</title>
		</f:facet>

		<script type="text/javascript" src="#{request.contextPath}/template/js/jquery.easing.1.3.js" />
		<script type="text/javascript" src="#{request.contextPath}/template/js/jquery.timer.js" />
		<script type="text/javascript" src="#{request.contextPath}/template/js/jquery.tooltip.js" />
		<script type="text/javascript" src="#{request.contextPath}/template/js/scheduleInternational.js" />
		
		<!-- <link href="#{request.contextPath}/template/css/primefaces/theme.css" rel="stylesheet" type="text/css" /> -->
		<link href="#{request.contextPath}/template/css/default.css" rel="stylesheet" type="text/css" />
		<link href="#{request.contextPath}/template/css/main.css" rel="stylesheet" type="text/css" />
		
		<ui:insert name="styleAndScript"/>
		
		<style type="text/css">
			/*截取过长的文本*/
			.substring {
				white-space: nowrap; word-break: keep-all; overflow: hidden; text-overflow: ellipsis;
			}
			input[type='radio'] {
				width: 20px;
			}
			ul {
				/*list-style-type:none;*/
			}
			ul li {
				margin: 2px 0 2px 0;
			}
			
			ul li a {
				text-decoration:none;
				font-weight: bold;
				border-right:1px solid white;
			}
			ul li a:hover {
				color: blue;
				font-size: 14px;
				font-weight: bold;
				text-decoration: none;
			}
			/**重设置按钮宽、高**/
			.ui-button-icon-only {
				width: 1.7em; height: 1.7em;
			}
		</style>
		<script type="text/javascript">
			$(document).ready(function(){
				/**$("#left div.ui-layout-unit-header").each(function(index){
					$(this).css("height", "24px");
					$(this).css("margin-top", "2px");
				});*/
			});
		</script>
	</h:head>
	<h:body>
		<p:layout fullPage="true" id="full_layout">
			<p:layoutUnit id="top" position="north" size="40">
				<ui:include src="/template/top.xhtml"/>
			</p:layoutUnit>

			<p:layoutUnit id="left" position="west" size="300" resizable="false" collapsible="true" header="资源列表">
				<ui:include src="/template/menu.xhtml"/>
			</p:layoutUnit>

			<p:layoutUnit id="center" position="center">
				<ui:insert name="center_content"/>
			</p:layoutUnit>

			<p:layoutUnit id="bottom" position="south" size="25">
				<div>Copyright © 2010 - 2012 Deva, Inc. All rights reserved.</div>
			</p:layoutUnit>
		</p:layout>
		
		<ui:insert name="edit_content"/>
		<p:growl showSummary="true" showDetail="true" id="option_info" life="3000" />

		<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();" />
		<p:dialog modal="true" widgetVar="statusDialog" header="正在执行，请等待..." resizable="false" draggable="false" closable="false">
			<p:graphicImage value="/template/img/loading.gif" />
		</p:dialog>
	</h:body>
</f:view>
</html>